/*
 * Author: JacksonCoder
 * FileName: HeapOverFlowe
 * Version: 1.0.0
 * Date: 2025/2/15
 */

import java.util.ArrayList;
import java.util.List;

public class HeapOverFlow {

    public static void main(String[] args) {
        List<Object> objects = new ArrayList<>();
        while(true){
            objects.add(new Object());  // 不断创建对象并保留引用
        }
    }

}
